import App from './App'
import uviewPlus from '@/uni_modules/uview-plus'
import http from './utils/http.js'
import common from '@/utils/common.js'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import "@/icons/index.js"
Vue.config.productionTip = false
App.mpType = 'app'


const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import * as Pinia from 'pinia';
export function createApp() {
	const app = createSSRApp(App)
	app.use(Pinia.createPinia());
	app.use(uviewPlus)
	app.use(common);
	app.config.globalProperties.$http = http(app);
	return {
		app,
		Pinia
	}
}
// #endif